<header class="header">
    <div class="container">
        <h1 class="logo">
            <a class="active" href="<?php echo site_url();?>">logo</a>
        </h1>
        <?php
        $xcid = isset($xcid) ? $xcid : 0;
        ?>
        <nav class="main-nav">
            <ul>
                <li><a class="sign-in <?php if ($xcid === 0) echo 'active';?>" href="<?php echo site_url();?>">首页</a></li>
                <li><a class="sign-in <?php if ($xcid == 13) echo 'active';?>" href="<?php echo site_url('go/help');?>">go辅助</a></li>
                <li><a class="sign-in <?php if ($xcid == 18) echo 'active';?>" href="<?php echo site_url('home/iirs');?>">go Iris框架</a></li>
                <li><a class="sign-in <?php if ($xcid == 19) echo 'active';?>" href="<?php echo site_url('home/ci');?>">PHP Ci框架</a></li>
                <li><a class="sign-in <?php if ($xcid == 'cx') echo 'active';?>" href="<?php echo site_url('cx');?>">程序下载</a></li>
                <?php
                $cat = db_get_list('article_cat', ['fid' => 1, 'state' => 1]);
                $i = 0;
                foreach ($cat as $v) {
                    if ($i == 0) {
                        ?>
                        <li><a class="sign-in <?php if ($xcid === 'go') echo 'active';?>" href="<?php echo site_url('go');?>">Go</a></li>
                        <li><a class="sign-in <?php if ($xcid == 2) echo 'active';?>" href="<?php echo site_url('php');?>">PHP</a></li>
                        <?php
                    }
                    $i++;
                    ?>
                    <li><a class="sign-in <?php if ($xcid == $v['id']) echo 'active';?>" href="<?php echo site_url('home/c/'.$v['id']);?>"><?php echo $v['name'];?></a></li>
                    <?php
                }
                ?>
<!--                <li><a class="sign-in --><?php //if ($xcid === 'inter_face') echo 'active';?><!--" href="/home/inter_face">本站接口</a></li>-->
                <li><a class="sign-in <?php if ($xcid === 'qr_code') echo 'active';?>" href="<?php echo site_url('home/qr_code');?>">关注</a></li>

            </ul>
        </nav>
    </div>
</header>